package com.cy.wangly.springcore.beanAutowired.impl;

import com.cy.wangly.springcore.beanAutowired.TestInterface;
import com.cy.wangly.springcore.custom.WanglyChooser;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@WanglyChooser("four")
@RequestMapping("/AA")
public class TestAutowiredFour implements TestInterface {
    public TestAutowiredFour() {
        System.out.println("init TestAutowiredFour");
    }

    @RequestMapping("/BB")
    public String BB() {
        return "BB";
    }

    public String getBeanName() {
        return "testAutowiredFour";
    }
}
